package com.example.bjsfpost.sap;

import cn.hutool.core.util.RandomUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class TestServiceImpl {

    public String test(String req){
        //All Trace debug info warn error fatal off
        log.trace("TestServiceImpl trace test=={}",req);
        log.debug("TestServiceImpl debug test=={}",req);
        log.info("TestServiceImpl info test=={}",req);
        log.warn("TestServiceImpl warn test=={}",req);
        log.error("TestServiceImpl error test=={}",req);
        return RandomUtil.randomString(5);
    }
}
